@import '~/common/style/index.scss';

$groupSetting-prefix-cls: #{$cui-prefix}-groupSetting;

.#{$groupSetting-prefix-cls}{
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: $gray-98;
    height: 100%;
    box-sizing: border-box;
    padding: 20px 0;
    position: relative;
    &-header{
        display: flex;
        flex-direction: column;
        padding-top: 16px;
        align-items: center;
        background-color: $gray-98;
        width: 100%;
        &-name{
            font-size: 18px;
            font-style: normal;
            font-weight: 500;
            line-height: 26px;
            padding: 0 12px;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            text-align: center;
        }
        &-id{
            margin-top: 2px;
            display: flex;
            font-size: 14px;
            font-style: normal;
            font-weight: 400;
            line-height: 20px;
            color: $gray-7;
            align-items: center;
            gap: 4px;
        }
        &-description{
            font-size: 14px;
            line-height: 20px;
            margin-top: 4px;
            padding: 0 12px;
            max-height: 60px;
            overflow-y: auto;
            width: 100%;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            text-align: center;
        }
        &-back{
            margin-top: 0 !important;
            display: flex;
            padding-left: 12px;
            flex-direction: row !important;
        }
    }
    &-header>div{
        margin-top: 16px;
        display: flex;
        align-items: center;
        flex-direction: column;
        width: 100%;
        box-sizing: border-box;
    }

    &-content{
        width: 100%;
        background-color: $gray-95;
        &-item{
            background-color: $gray-98;
            display: flex;
            justify-content: space-between;
            height: 54px;
            box-sizing: border-box;
            align-items: center;
            gap: 8px;
            padding: 0 12px;
            &-box{
                cursor: pointer;
                height: 100%;
                align-items: center;
                display: flex;
                justify-content: space-between;
                flex: 1;
                border-bottom: 1px solid $gray-9;
                &>div{
                    display: flex;
                    align-items: center;
                    font-size: 14px;
                    color: $gray-5;
                }
                &>span{
                    font-size: 14px;
                    font-weight: 500;
                    line-height: 20px;
                    color: $gray-1;
                }
            }
        }

        &-section{
            margin-top: 12px;
        }
    }

    // member list container
    &-member-box{
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: $gray-98;
        height: 100%;
        box-sizing: border-box;
    }


    &-select{
        color: $blue-5;
        text-align: center;
        font-size: 14px;
        font-style: normal;
        font-weight: 500;
        line-height: 20px; /* 142.857% */
        cursor: pointer;
    }

    &-dark{
        background-color: $gray-1;
        .#{$groupSetting-prefix-cls}-header{
            background-color: $gray-1;
            color: $gray-98;
        }
        .#{$groupSetting-prefix-cls}-content{
            background-color: #000;
            &-item{
                background-color: $gray-1;
                &-box{
                    
                    border-bottom: 1px solid $gray-2;
                    &>div{
                        color: $gray-6;
                    }
                    &>span{
                        color: $gray-98;
                    }
                }
            }
        }
    }
}

.cui-group-nickname-input input{
    background-color: $gray-95;
}

.#{$groupSetting-prefix-cls}-infoModal div{
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 20px; 
    margin-bottom: 4px;
}

.#{$groupSetting-prefix-cls}-infoModal:nth-of-type(2){
    margin-top: 16px;
}

